#ifndef SQLITE3_DATABASE_H_H_H
#define SQLITE3_DATABASE_H_H_H

#include <sqlite3.h>
#include <string>

class Sqlite3Database
{
public:
    Sqlite3Database();
    ~Sqlite3Database();

protected:
    static int callback(void *NotUsed, int argc, char **argv, char **azColName);

public:
    bool sqlite3Open(const std::string &filename);
    bool sqlite3Close();
    bool sqlite3Exec(const std::string &sql);
    bool sqlite3Exec(const std::string &sql, int (*callback)(void *, int, char **, char **), void *data);

private:
    sqlite3 *m_database;
};

#endif